<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Create an Item</title>
    </head>
    <body>
        <h1>Create an item</h1>
        <form id="createUserForm" action="CreateItem" method="post">
            <table>
                <tr><td>Titre</td><td><input type="text" id = "titre" name="titre" /></td></tr>
                <tr><td>Durée emprunt</td><td><input type="text" id = "dureeEmprunt" name="dureeEmprunt" /></td></tr>
            </table>
            <input type="submit" id="item" value="Create Item" />
        </form>
        <c:if test="${requestScope.success != null}">
            <%= request.getAttribute("success")%>
        </c:if>

    </body>
</html>
